<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});
// 登录
Route::get('/login',function (){
    return view('admin/login');
});
Route::get('/test',"admin\LoginController@test");
Route::get('/article',"admin\LoginController@article");

Route::prefix('admin')->group(function (){
    //发送验证码
    Route::get('sendCode',"admin\LoginController@sendCode");
//登录
    Route::post('doLogin',"admin\LoginController@doLogin");
});

